﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Jemgine.EffectEditor
{
    public partial class SaveChanges : Form
    {
        public enum Action
        {
            Save,
            Discard,
            Cancel
        }

        public Action DialogResult;

        public SaveChanges()
        {
            InitializeComponent();
        }

        private void Save_Click(object sender, EventArgs e)
        {
            DialogResult = Action.Save;
            Close();
        }

        private void Discard_Click(object sender, EventArgs e)
        {
            DialogResult = Action.Discard;
            Close();
        }

        private void Cancel_Click(object sender, EventArgs e)
        {
            DialogResult = Action.Cancel;
            Close();
        }
    }
}
